﻿@model IEnumerable<WStest.Models.UserView>

@{
    ViewBag.Title = "Search Result";
}

<h2>Search Result</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Username)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
    </tr>
}

</table>

<div>
    @Html.ActionLink("Back to Search", "Index")
</div>
